import request from '@/utils/request'

// 网关前缀 + 控制器前缀：/circle(网关) + /circleCommentLike(控制器)
const prefix = '/circle/circleCommentLike'

/**
 * 点赞/取消点赞 某条评论
 * 后端：POST {gateway}{prefix}/like/{commentId}
 * 返回：{ isLiked: boolean, likeCount: number }
 */
export function toggleCommentLike(commentId) {
  return request({
    url: `${prefix}/like/${commentId}`,
    method: 'post'
  })
}
